<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<title>Matrix Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/Public/matrix/favicon.ico" />
<link rel="stylesheet" href="/Public/matrix/css/bootstrap.min.css" />
<link rel="stylesheet" href="/Public/matrix/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="/Public/matrix/css/matrix-style.css" />
<link rel="stylesheet" href="/Public/matrix/css/matrix-media.css" />
<link href="/Public/matrix/font-awesome/css/font-awesome.css" rel="stylesheet" />
<script src="/Public/matrix/js/jquery.min.js"></script> 
<script src="/Public/matrix/js/jquery.ui.custom.js"></script> 
<script src="/Public/matrix/js/bootstrap.min.js"></script> 
<script src="/Public/matrix/js/matrix.js"></script>
<script src="/Public/layer/layer.js"></script>

</head>
<body>


<!--Header-part-->
<div id="header">
  <h1><a href="<?php echo U('Index/index');?>">Matrix Admin</a></h1>
</div>
<!--close-Header-part--> 

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">欢迎登录：张三</span><b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="#"><i class="icon-check"></i> 我的资料</a></li>
        <li class="divider"></li>
        <li><a href="login.html"><i class="icon-key"></i> 修改密码</a></li>
      </ul>
    </li>
    <li class=""><a title="" href="<?php echo U('Public/logout');?>"><i class="icon icon-share-alt"></i> <span class="text">退出登录</span></a></li>
  </ul>
</div>


<!--sidebar-menu-->
<div id="sidebar"> <a href="#" class="visible-phone"><i class="icon icon-fullscreen"></i>Full width</a>
  <ul>
    <?php echo R('Public/createMenu');?>

  </ul>
</div>


<div id="content">

  <div id="content-header">
    <div id="breadcrumb"> <a href="<?php echo U('Index/index');?>" title="回到首页" class="tip-bottom"><i class="icon-home"></i> 首页</a> <a href="#" class="current">系统角色管理</a> </div>
    <h1>系统角色管理</h1>
  </div>
 

<div class="container-fluid">
  <hr>
  

<div class="quick-actions_homepage">
    <ul class="quick-actions">
      <li class="bg_lb"> <a href="#" onclick="showWindow('添加新角色','<?php echo U('AuthGroup/add');?>',500,250);" > <i class="icon-plus"></i> 添加新角色 </a> </li>
    </ul>
</div>

<div class="row-fluid">
  <div class="span12">
    <div class="widget-box">
      
	 <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
          <h5>系统角色</h5>
          </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered table-striped">
              <thead>
                <tr>
                  <th>ID</th>
                  <th>角色名称</th>
                  <th>启用状态</th>
                  <th>添加时间</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                  <td><?php echo ($vo['id']); ?></td>
                  <td><?php echo ($vo['title']); ?></td>
                  <td><?php if(($vo['status']) == "1"): ?><span class="label label-success">启用</span><?php else: ?><span class="label">禁用</span><?php endif; ?></td>
                  <td><?php echo (toDate($vo['addtime'],'Y-m-d H:i')); ?></td>
                  <td>
                  	<div class="fr">
                  		<a href="#" onclick="showWindow('编辑角色','<?php echo U('AuthGroup/edit',array('id'=>$vo['id']));?>',500,250);" class="btn btn-primary btn-mini">编辑</a>
                  		<a href="#" onclick="showConfirm('<?php echo U('AuthGroup/foreverdelete',array('id'=>$vo['id']));?>');" class="btn btn-danger btn-mini">删除</a></div>
                  	</div>
                  </td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
              </tbody>
            </table>

          </div>
          <div class="pagination"><?php echo ($page); ?></div>
        </div>

    </div>
  </div>
</div>


</div>
</div>

<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2013 &copy; Matrix Admin. Brought to you by <a href="http://themedesigner.in/">Themedesigner.in</a> </div>
</div>
<!--end-Footer-part-->


</body>
</html>
<script type="text/javascript">
$(function(){
  //加载扩展模块
  layer.config({
      extend: 'extend/layer.ext.js'
  });

});
</script>

<script type="text/javascript" src="/Public/layer/public.js"></script>